package com.tqfframe.task.learning.reflection;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by Tang-QiFeng on 2020/7/18
 */
public class RegistHandlerMap {

    private static ConcurrentHashMap<String,Class> registHandlerMap=new ConcurrentHashMap<>();

    public static void putRegistHandlerMap(String name,Class c){
        registHandlerMap.put(name,c);
    }

    public static Class getRegistHandlerMap(String name) {
        return registHandlerMap.get(name);
    }

    public  static void clear(){
        registHandlerMap.clear();
    }
}
